package com.hd.appcommon.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hd.appcommon.entity.CourseScore;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Data
@ToString
public class StudentCreditRecordVo {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String jobNumber;
    private Float totalCre;
    private Float schoolCompulsoryCre;
    private List<CourseScore> schoolCompulsoryCreDet;
    private Float limitCre;
    private List<CourseScore> limitCreDet;
    private Float practiceCre;
    private List<CourseScore> practiceCreDet;
    private Float outChooseCre;
    private List<CourseScore> outChooseCreDet;
    private Float outCompulsoryCre;
    private List<CourseScore> outCompulsoryCreDet;
    private Float otherCre;
    private List<CourseScore> otherCreDet;
    private Float compulsoryCre;
    private List<CourseScore> compulsoryCreDet;
    private Float majorChooseCre;
    private List<CourseScore> majorChooseCreDet;
    private Float english2;
    private List<CourseScore> english2Det;
    private Float english3;
    private List<CourseScore> english3Det;
    private Float english4;
    private List<CourseScore> english4Det;

    public void create(){
        this.schoolCompulsoryCreDet=new ArrayList<>();
        this.limitCreDet=new ArrayList<>();
        this.practiceCreDet=new ArrayList<>();
        this.outChooseCreDet=new ArrayList<>();
        this.outCompulsoryCreDet=new ArrayList<>();
        this.otherCreDet=new ArrayList<>();
        this.compulsoryCreDet=new ArrayList<>();
        this.majorChooseCreDet=new ArrayList<>();
        this.english2Det=new ArrayList<>();
        this.english3Det=new ArrayList<>();
        this.english4Det=new ArrayList<>();
    }
    public void clearMsg(){
        this.schoolCompulsoryCre= 0.0F;
        this.limitCre=0.0F;
        this.practiceCre=0.0F;
        this.outChooseCre=0.0F;
        this.outCompulsoryCre=0.0F;
        this.otherCre=0.0F;
        this.compulsoryCre=0.0F;
        this.majorChooseCre=0.0F;
        this.english2=0.0F;
        this.english3=0.0F;
        this.english4=0.0F;
    }
}
